package com.dnzx.model;

import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModelProperty;

public class BaseBO implements Serializable {

	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "主键ID")
	protected Long id;
//	@JsonIgnore
	private Integer currentPage = 1;
//	@JsonIgnore
	private Integer pageSize;
	@ApiModelProperty(value = "插入时间")
	private Date addTime = new Date();
	@ApiModelProperty(value = "更新时间")
	private Date modTime = new Date();
	
	@ApiModelProperty(value = "语言版本")
    private String langCode;
	
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Integer getCurrentPage() {
		return currentPage;
	}

	public void setCurrentPage(Integer currentPage) {
		this.currentPage = currentPage;
	}

	public Integer getPageSize() {
		if (pageSize == null || pageSize == 0) {
			pageSize = 10;// 默认为10
		}
		return pageSize;
	}

	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}

	public Date getAddTime() {
		return addTime;
	}

	public void setAddTime(Date addTime) {
		this.addTime = addTime;
	}

	public Date getModTime() {
		return modTime;
	}

	public void setModTime(Date modTime) {
		this.modTime = modTime;
	}

	public String getLangCode() {
		return langCode;
	}

	public void setLangCode(String langCode) {
		this.langCode = langCode;
	}

}
